package cn.wolfcode.luowowo.query;


import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class TravelQuery extends  QueryObject{

    public  static final int Hot_type = 2; // 最热
    public  static final int New_type = 1; // 最新

    private String destId;

    private int orderType = -1;  //默认最新排序

    private int perExpendType = -1; // 出行花费

    private int dayType = -1; // 出行时间

    private int isPublic = 1; // 是否公开


    // 出行时间
    public TravelCondition getDay(){

        return TravelCondition.Data_Map.get(dayType);
    }

    //2  --->  new TravelCondition(1000, 6000)
    public TravelCondition getPerExpend(){
        return TravelCondition.PerexPend_Map.get(perExpendType);
    }


}
